package de.lulusoft.anothertorrent.gui.preferences;

import org.eclipse.core.runtime.preferences.AbstractPreferenceInitializer;
import org.eclipse.jface.preference.IPreferenceStore;

import de.lulusoft.anothertorrent.gui.AnotherTorrentGui;

/**
 * Class used to initialize default preference values.
 */
public class PreferenceInitializer extends AbstractPreferenceInitializer {

	/*
	 * (non-Javadoc)
	 * 
	 * @see org.eclipse.core.runtime.preferences.AbstractPreferenceInitializer#initializeDefaultPreferences()
	 */
	public void initializeDefaultPreferences() {
		IPreferenceStore store = AnotherTorrentGui.getDefault().getPreferenceStore();
		store.setDefault(PreferenceConstants.P_UPDATE_INTERVAL_LIST_VIEW,	"5");
		store.setDefault(PreferenceConstants.P_UPDATE_INTERVAL_SERVER_VIEW,	"5");
		store.setDefault(PreferenceConstants.P_UPDATE_INTERVAL_DETAILS_VIEW,	"5");
		store.setDefault(PreferenceConstants.P_IGNORE_VIEWS,	"default, active");
	}

}
